package org.cpoy.ei.session;

import org.cpoy.eims.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("studentCertificateLocationList")
public class StudentCertificateLocationList extends
		EntityQuery<StudentCertificateLocation> {

	private static final String EJBQL = "select studentCertificateLocation from StudentCertificateLocation studentCertificateLocation";

	private static final String[] RESTRICTIONS = { "lower(studentCertificateLocation.locationUrl) like lower(concat(#{studentCertificateLocationList.studentCertificateLocation.locationUrl},'%'))", };

	private StudentCertificateLocation studentCertificateLocation = new StudentCertificateLocation();

	public StudentCertificateLocationList() {
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public StudentCertificateLocation getStudentCertificateLocation() {
		return studentCertificateLocation;
	}
}
